﻿using Microsoft.Extensions.DependencyInjection;
namespace Odyssey.Extensions
{
    internal static class ServiceCollectionExtensions
    {
        public static IServiceCollection Clone(this IServiceCollection serviceCollection)
        {
            IServiceCollection clone = new ServiceCollection();
            foreach (var serivce in serviceCollection) {
                clone.Add(serivce);
            }
            return clone;
        }
    }
}
